package com.jyxd.web.data.assessment;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@ApiModel("体温单数据保存")
@Entity
@Table(name = "table_temperature_data")
@Data
public class TemperatureData implements Serializable {

    /**
     * 主键ID
     */
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;

    @ApiModelProperty("患者id")
    @Column(name = "patient_id")
    private String patientId;

    @ApiModelProperty("类型")
    @Column(name = "temperature_type")
    private String temperatureType;

    @ApiModelProperty("页码")
    @Column(name = "page_number")
    private Integer pageNumber;

    @ApiModelProperty("序号")
    @Column(name = "serial_number")
    private Integer serialNumber;

    @ApiModelProperty("值")
    @Column(name = "temperature_value")
    private String temperatureValue;

    @ApiModelProperty("是否删除状态")
    @Column(name = "status")
    private Integer status;

    @ApiModelProperty("创建时间")
    @Column(name = "create_time")
    private Date createTime;

}
